package zpf.config;

import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: FeignCustomConfiguration
 * @Description: 访问远端服务配置类
 * @Autor: ZPF
 * @Date: 2021/1/14 13:40
 **/
//@Configuration
public class FeignCustomConfiguration {

    /***
     * @MethodName: feignContract
     * @Description: feign契约配置使用RequestLine注解
     * @Author: ZPF
     * @Date: 2021/1/14 14:05
     **/
    @Bean
    public Contract feignContract(){
        return new feign.Contract.Default();
    }

    /***
     * @MethodName: feignLoggerLevel
     * @Description: 日志级别配置
     * @Author: ZPF
     * @Date: 2021/1/14 14:05
     **/
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

}
